package services

import (
	"WORKSPACE/dao"
	"WORKSPACE/models"
)

func GetAllattendance() (error, []models.Attendance, int64) {
	err, attendance, total := dao.GetAllattendance()
	return err, attendance, total
}


func Delattendance(id string,data string) error {
	err := dao.Delattendance(id,data)
	return err
}

func Updateattendance(attendance models.Attendance) error{
	err:= dao.Updateattendance(attendance)
	return err
}

func Addattendance(attendance models.Attendance) (error) {
	err := dao.Addattendance(attendance)
	return err
}
